﻿using Microsoft.Extensions.DependencyInjection;
using StartsEAS_API.BLL.Interfaces.IAlterClassB;
using StartsEAS_API.DAL.AlterClassD;
using StartsEAS_API.Model;
using StartsEAS_API.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StartsEAS_API.BLL.AlterClassB
{
    public class AlterClassBLL : IAlterClassBLL
    {
        private readonly StarsEASContext _context;
        private readonly AlterClassDAL _alterClassDal;
        public AlterClassBLL(IServiceScopeFactory context) {
            _context = context.CreateScope().ServiceProvider.GetRequiredService<StarsEASContext>();
            _alterClassDal = new(_context);
        }
        public ResultUtils GetAllAlterClass()
        {
            return _alterClassDal.GetAllAlterClass();
        }
    }
}
